//
//  YSDevice.h
//  YouSheng
//
//  Created by aaa on 16/8/18.
//  Copyright © 2016年 FanShuHan. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface YSDevice : NSObject
typedef NS_ENUM(NSUInteger,YSNetworkType) {
    YSNetworkTypeUnknown,
    YSNetworkTypeWifi,
    YSNetworkTypeWwan,
    YSNetworkType2G,
    YSNetworkType3G,
    YSNetworkType4G,
};

+ (YSDevice *)currentDevice;

//图片/音频推荐参数
- (CGFloat)suggestImagePixels;

- (CGFloat)compressQuality;

//App状态
- (BOOL)isUsingWifi;
- (BOOL)isInBackground;

- (YSNetworkType)currentNetworkType;

- (NSInteger)cpuCount;

- (BOOL)isLowDevice;
- (BOOL)isIphone;
- (NSString *)machineName;


- (CGFloat)statusBarHeight;
@end
